{smcl}
{txt}{sf}{ul off}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Output/APPENDIX H.WITHIN & BETWEEN TIER DIFFERENCES.04-19-2021.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}20 Apr 2021, 07:53:42
{txt}
{com}. 
. 
. 
.    
. **** DIFFERENCE IN DISTRIBUTION & MEDIAN BOTH WITHIN AND BETWEEN TIER 1 & TIER 2 U.S. FEDERAL AGENCY LEADERSHIP PAS CONFIRMED NOMINEES ****
. 
. **** APPENDIX H: EMPIRICAL BASIS FOR OBSERVED INFORMATION-BASED DIFFERENCES: EVALUATING BOTH WITHIN-TIER NOMINEE & BETWEEN-TIER NOMINEE CONFIRMATION DELAY DIFFERENCES **** 
. 
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. 
. 
. 
. *** NONPARAMETRIC MANN-WHITNEY U DIFFERENCES IN DISTRIBUTION TESTS [RANKSUM]: Ho: CONFIRMATION DELAY IS EQUIVALENT BETWEEN TWO GROUP DISTRIBUTION FUNCTIONS; Ha: NOT EQUIVALENT DISTRIBUTIONS --- NOTE: ESTABLISH THAT THE GROUP DISTRIBUTIONS HAVE SIMILAR LOCATION [SKEWNESS DIRECTION] AND SIMILAR VARIANCES TO TEST NOT JUST EQUALITY OF DISTRIBUTIONS BUT ALSO EQUALITY OF MEDIANS ***
. 
. 
. *** NONPARAMETRIC EQUALITY OF MEDIAN TESTS [MEDIAN]: Ho: MEDIAN CONFIRMATION DELAY IS EQUIVALENT BETWEEN TWO GROUPS; Ha: MEDIAN CD DIFFERS BETWEEN TWO GROUPS ***
. 
. use "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Data/Confirmation Dynamics.Database.08-13-2020.FINAL.dta", replace
{txt}
{com}. 
. 
. 
. 
. 
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. 
. 
. 
. 
. **** I. EVALUATE WITHIN-TIER DIFFERENCES BASED UPON WHETHER [1] SERVED IN PREVIOUS ADMINISTRATION IN FULL-TIME PAS OR NON-PAS APPOINTED POSITION [paepa]; ///
> **** [2] SERVED IN PREVIOUS ADMINISTRATION IN FULL-TIME PAS OR NON-PAS APPOINTED POSITION, SAME AGENCY [paepasa]; and (3) RESIDED IN D.C. METRO AREA WITHIN PAST 10 YEARS [dc] **** 
. 
. 
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. 
. 
. *** PERFORM MANN-WHITNEY U [ranksum] & NONPARAMETRIC EQUALITY OF MEDIANS TESTS [median] ***
. 
. 
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. 
. 
. ** [1] SERVED IN PREVIOUS ADMINISTRATION IN FULL-TIME PAS OR NON-PAS APPOINTED POSITION [paepa] **
. 
. ranksum confdur if toplevel2==0 & agencyideol!=., by(paepa) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

       paepa {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    478{col 26}  170667.5{col 38}    162998
           {txt}1 {c |}{res}{col 17}    203{col 26}   61553.5{col 38}     69223
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    681{col 26}    232221{col 38}    232221

{txt}unadjusted variance{col 22}{res}5514765.67
{txt}adjustment for ties{col 22}{res}   -845.81
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}5513919.86

{txt}Ho: confdur(paepa==0) = confdur(paepa==1)
{col 14}z = {res}  3.266
{txt}{col 5}Prob > |z| = {res}  0.0011
{txt}{col 5}Exact Prob = {res}  0.0011
{txt}
{com}. median  confdur if toplevel2==0 & agencyideol!=., by(paepa) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}         paepa
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}       221        116 {txt}{c |}{res}       337 
{txt}       yes {c |}{res}       257         87 {txt}{c |}{res}       344 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       478        203 {txt}{c |}{res}       681 

{txt}          Pearson chi2({res}1{txt}) = {res}  6.7829  {txt} Pr = {res}0.009
{txt}           Fisher's exact =                 {res}0.010
{txt}   1-sided Fisher's exact =                 {res}0.006

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res}  6.3535{txt}   Pr = {res}0.012
{txt}
{com}. *
. *
. _pctile confdur if toplevel2==1 & agencyideol!=. & paepa==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}29
{txt}
{com}. *
. _pctile confdur if toplevel2==1 & agencyideol!=. & paepa==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}20
{txt}
{com}. *
. *
. *
. ranksum confdur if toplevel2==1 & agencyideol!=., by(paepa) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

       paepa {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    215{col 26}   38160.5{col 38}   35797.5
           {txt}1 {c |}{res}{col 17}    117{col 26}   17117.5{col 38}   19480.5
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    332{col 26}     55278{col 38}     55278

{txt}unadjusted variance{col 22}{res} 698051.25
{txt}adjustment for ties{col 22}{res}   -360.87
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res} 697690.38

{txt}Ho: confdur(paepa==0) = confdur(paepa==1)
{col 14}z = {res}  2.829
{txt}{col 5}Prob > |z| = {res}  0.0047
{txt}{col 5}Exact Prob = {res}  0.0046
{txt}
{com}. median  confdur if toplevel2==1 & agencyideol!=., by(paepa) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}         paepa
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}        97         69 {txt}{c |}{res}       166 
{txt}       yes {c |}{res}       118         47 {txt}{c |}{res}       165 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       215        116 {txt}{c |}{res}       331 

{txt}          Pearson chi2({res}1{txt}) = {res}  6.2206  {txt} Pr = {res}0.013
{txt}           Fisher's exact =                 {res}0.015
{txt}   1-sided Fisher's exact =                 {res}0.009

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res}  5.6592{txt}   Pr = {res}0.017
{txt}
{com}. *
. *
. _pctile confdur if toplevel2==1 & agencyideol!=. & paepa==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}29
{txt}
{com}. *
. _pctile confdur if toplevel2==1 & agencyideol!=. & paepa==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}20
{txt}
{com}. *
. *
. *
. ranksum legvetdur if toplevel2==0 & agencyideol!=., by(paepa) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

       paepa {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    478{col 26}  169775.5{col 38}    162998
           {txt}1 {c |}{res}{col 17}    203{col 26}   62445.5{col 38}     69223
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    681{col 26}    232221{col 38}    232221

{txt}unadjusted variance{col 22}{res}5514765.67
{txt}adjustment for ties{col 22}{res}  -1120.62
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}5513645.04

{txt}Ho: legvet~r(paepa==0) = legvet~r(paepa==1)
{col 14}z = {res}  2.886
{txt}{col 5}Prob > |z| = {res}  0.0039
{txt}{col 5}Exact Prob = {res}  0.0038
{txt}
{com}. median  legvetdur if toplevel2==0 & agencyideol!=., by(paepa) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}         paepa
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}       222        118 {txt}{c |}{res}       340 
{txt}       yes {c |}{res}       256         85 {txt}{c |}{res}       341 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       478        203 {txt}{c |}{res}       681 

{txt}          Pearson chi2({res}1{txt}) = {res}  7.7815  {txt} Pr = {res}0.005
{txt}           Fisher's exact =                 {res}0.006
{txt}   1-sided Fisher's exact =                 {res}0.003

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res}  7.3211{txt}   Pr = {res}0.007
{txt}
{com}. *
. *
. _pctile legvetdur if toplevel2==0 & agencyideol!=. & paepa==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}44
{txt}
{com}. *
. _pctile legvetdur if toplevel2==0 & agencyideol!=. & paepa==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}33
{txt}
{com}. *
. *
. *
. *
. ranksum legvetdur if toplevel2==1 & agencyideol!=., by(paepa) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

       paepa {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    215{col 26}     38073{col 38}   35797.5
           {txt}1 {c |}{res}{col 17}    117{col 26}     17205{col 38}   19480.5
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    332{col 26}     55278{col 38}     55278

{txt}unadjusted variance{col 22}{res} 698051.25
{txt}adjustment for ties{col 22}{res}  -1729.39
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res} 696321.86

{txt}Ho: legvet~r(paepa==0) = legvet~r(paepa==1)
{col 14}z = {res}  2.727
{txt}{col 5}Prob > |z| = {res}  0.0064
{txt}{col 5}Exact Prob = {res}  0.0063
{txt}
{com}. median  legvetdur if toplevel2==1 & agencyideol!=., by(paepa) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}         paepa
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}        97         69 {txt}{c |}{res}       166 
{txt}       yes {c |}{res}       118         48 {txt}{c |}{res}       166 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       215        117 {txt}{c |}{res}       332 

{txt}          Pearson chi2({res}1{txt}) = {res}  5.8204  {txt} Pr = {res}0.016
{txt}           Fisher's exact =                 {res}0.021
{txt}   1-sided Fisher's exact =                 {res}0.011

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res}  5.2793{txt}   Pr = {res}0.022
{txt}
{com}. *
. *
. _pctile legvetdur if toplevel2==1 & agencyideol!=. & paepa==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}23
{txt}
{com}. *
. _pctile legvetdur if toplevel2==1 & agencyideol!=. & paepa==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}16
{txt}
{com}. *
. *
. *
. ranksum polvetdur if toplevel2==0 & agencyideol!=., by(paepa) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

       paepa {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    478{col 26}  170596.5{col 38}    162998
           {txt}1 {c |}{res}{col 17}    203{col 26}   61624.5{col 38}     69223
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    681{col 26}    232221{col 38}    232221

{txt}unadjusted variance{col 22}{res}5514765.67
{txt}adjustment for ties{col 22}{res}-116344.31
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}5398421.36

{txt}Ho: polvet~r(paepa==0) = polvet~r(paepa==1)
{col 14}z = {res}  3.270
{txt}{col 5}Prob > |z| = {res}  0.0011
{txt}{col 5}Exact Prob = {res}  0.0010
{txt}
{com}. median  polvetdur if toplevel2==0 & agencyideol!=., by(paepa) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}         paepa
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}       201        108 {txt}{c |}{res}       309 
{txt}       yes {c |}{res}       276         95 {txt}{c |}{res}       371 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       477        203 {txt}{c |}{res}       680 

{txt}          Pearson chi2({res}1{txt}) = {res}  7.0305  {txt} Pr = {res}0.008
{txt}           Fisher's exact =                 {res}0.009
{txt}   1-sided Fisher's exact =                 {res}0.005

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res}  6.5913{txt}   Pr = {res}0.010
{txt}
{com}. *
. *
. _pctile polvetdur if toplevel2==0 & agencyideol!=. & paepa==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}3
{txt}
{com}. *
. _pctile polvetdur if toplevel2==0 & agencyideol!=. & paepa==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}2
{txt}
{com}. *
. *
. *
. ranksum polvetdur if toplevel2==1 & agencyideol!=., by(paepa) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

       paepa {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    215{col 26}   38090.5{col 38}   35797.5
           {txt}1 {c |}{res}{col 17}    117{col 26}   17187.5{col 38}   19480.5
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    332{col 26}     55278{col 38}     55278

{txt}unadjusted variance{col 22}{res} 698051.25
{txt}adjustment for ties{col 22}{res} -24341.69
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res} 673709.56

{txt}Ho: polvet~r(paepa==0) = polvet~r(paepa==1)
{col 14}z = {res}  2.794
{txt}{col 5}Prob > |z| = {res}  0.0052
{txt}{col 5}Exact Prob = {res}  0.0051
{txt}
{com}. median  polvetdur if toplevel2==1 & agencyideol!=., by(paepa) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}         paepa
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}       103         72 {txt}{c |}{res}       175 
{txt}       yes {c |}{res}       111         45 {txt}{c |}{res}       156 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       214        117 {txt}{c |}{res}       331 

{txt}          Pearson chi2({res}1{txt}) = {res}  5.4572  {txt} Pr = {res}0.019
{txt}           Fisher's exact =                 {res}0.021
{txt}   1-sided Fisher's exact =                 {res}0.013

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res}  4.9324{txt}   Pr = {res}0.026
{txt}
{com}. *
. *
. _pctile polvetdur if toplevel2==1 & agencyideol!=. & paepa==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}2
{txt}
{com}. *
. _pctile polvetdur if toplevel2==1 & agencyideol!=. & paepa==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}1
{txt}
{com}. 
. 
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. 
. 
. ** [2] SERVED IN PREVIOUS ADMINISTRATION IN FULL-TIME PAS OR NON-PAS APPOINTED POSITION, SAME AGENCY [paepasa] **
. 
. 
. ranksum confdur if toplevel2==0 & agencyideol!=., by(paepasa) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

     paepasa {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    562{col 26}    197061{col 38}    191642
           {txt}1 {c |}{res}{col 17}    119{col 26}     35160{col 38}     40579
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    681{col 26}    232221{col 38}    232221

{txt}unadjusted variance{col 22}{res}3800899.67
{txt}adjustment for ties{col 22}{res}   -582.95
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}3800316.72

{txt}Ho: confdur(paepasa==0) = confdur(paepasa==1)
{col 14}z = {res}  2.780
{txt}{col 5}Prob > |z| = {res}  0.0054
{txt}{col 5}Exact Prob = {res}  0.0053
{txt}
{com}. median  confdur if toplevel2==0 & agencyideol!=., by(paepasa) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}        paepasa
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}       267         70 {txt}{c |}{res}       337 
{txt}       yes {c |}{res}       295         49 {txt}{c |}{res}       344 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       562        119 {txt}{c |}{res}       681 

{txt}          Pearson chi2({res}1{txt}) = {res}  5.0295  {txt} Pr = {res}0.025
{txt}           Fisher's exact =                 {res}0.027
{txt}   1-sided Fisher's exact =                 {res}0.016

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res}  4.5870{txt}   Pr = {res}0.032
{txt}
{com}. *
. *
. _pctile confdur if toplevel2==0 & agencyideol!=. & paepasa==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}53
{txt}
{com}. *
. _pctile confdur if toplevel2==0 & agencyideol!=. & paepasa==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}41
{txt}
{com}. *
. *
. *
. ranksum confdur if toplevel2==1 & agencyideol!=., by(paepasa) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

     paepasa {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    283{col 26}     47550{col 38}   47119.5
           {txt}1 {c |}{res}{col 17}     49{col 26}      7728{col 38}    8158.5
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    332{col 26}     55278{col 38}     55278

{txt}unadjusted variance{col 22}{res} 384809.25
{txt}adjustment for ties{col 22}{res}   -198.93
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res} 384610.32

{txt}Ho: confdur(paepasa==0) = confdur(paepasa==1)
{col 14}z = {res}  0.694
{txt}{col 5}Prob > |z| = {res}  0.4876
{txt}{col 5}Exact Prob = {res}  0.4890
{txt}
{com}. median  confdur if toplevel2==1 & agencyideol!=., by(paepasa) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}        paepasa
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}       139         27 {txt}{c |}{res}       166 
{txt}       yes {c |}{res}       143         22 {txt}{c |}{res}       165 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       282         49 {txt}{c |}{res}       331 

{txt}          Pearson chi2({res}1{txt}) = {res}  0.5639  {txt} Pr = {res}0.453
{txt}           Fisher's exact =                 {res}0.536
{txt}   1-sided Fisher's exact =                 {res}0.276

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res}  0.3554{txt}   Pr = {res}0.551
{txt}
{com}. *
. *
. _pctile confdur if toplevel2==1 & agencyideol!=. & paepasa==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}25
{txt}
{com}. *
. _pctile confdur if toplevel2==1 & agencyideol!=. & paepasa==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}20
{txt}
{com}. *
. *
. *
. ranksum legvetdur if toplevel2==0 & agencyideol!=., by(paepasa) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

     paepasa {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    562{col 26}    195885{col 38}    191642
           {txt}1 {c |}{res}{col 17}    119{col 26}     36336{col 38}     40579
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    681{col 26}    232221{col 38}    232221

{txt}unadjusted variance{col 22}{res}3800899.67
{txt}adjustment for ties{col 22}{res}   -772.36
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}3800127.31

{txt}Ho: legvet~r(paepasa==0) = legvet~r(paepasa==1)
{col 14}z = {res}  2.177
{txt}{col 5}Prob > |z| = {res}  0.0295
{txt}{col 5}Exact Prob = {res}  0.0294
{txt}
{com}. median  legvetdur if toplevel2==0 & agencyideol!=., by(paepasa) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}        paepasa
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}       268         72 {txt}{c |}{res}       340 
{txt}       yes {c |}{res}       294         47 {txt}{c |}{res}       341 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       562        119 {txt}{c |}{res}       681 

{txt}          Pearson chi2({res}1{txt}) = {res}  6.4535  {txt} Pr = {res}0.011
{txt}           Fisher's exact =                 {res}0.012
{txt}   1-sided Fisher's exact =                 {res}0.007

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res}  5.9510{txt}   Pr = {res}0.015
{txt}
{com}. *
. *
. _pctile legvetdur if toplevel2==0 & agencyideol!=. & paepasa==0, p(50)
{txt}
{com}. return list 

{txt}scalars:
                 r(r1) =  {res}42
{txt}
{com}. *
. _pctile legvetdur if toplevel2==0 & agencyideol!=. & paepasa==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}32
{txt}
{com}. *
. *
. *
. ranksum legvetdur if toplevel2==1 & agencyideol!=., by(paepasa) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

     paepasa {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    283{col 26}   47458.5{col 38}   47119.5
           {txt}1 {c |}{res}{col 17}     49{col 26}    7819.5{col 38}    8158.5
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    332{col 26}     55278{col 38}     55278

{txt}unadjusted variance{col 22}{res} 384809.25
{txt}adjustment for ties{col 22}{res}   -953.35
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res} 383855.90

{txt}Ho: legvet~r(paepasa==0) = legvet~r(paepasa==1)
{col 14}z = {res}  0.547
{txt}{col 5}Prob > |z| = {res}  0.5843
{txt}{col 5}Exact Prob = {res}  0.5857
{txt}
{com}. median  legvetdur if toplevel2==1 & agencyideol!=., by(paepasa) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}        paepasa
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}       139         27 {txt}{c |}{res}       166 
{txt}       yes {c |}{res}       144         22 {txt}{c |}{res}       166 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       283         49 {txt}{c |}{res}       332 

{txt}          Pearson chi2({res}1{txt}) = {res}  0.5985  {txt} Pr = {res}0.439
{txt}           Fisher's exact =                 {res}0.536
{txt}   1-sided Fisher's exact =                 {res}0.268

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res}  0.3831{txt}   Pr = {res}0.536
{txt}
{com}. *
. *
. _pctile legvetdur if toplevel2==1 & agencyideol!=. & paepasa==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}22
{txt}
{com}. *
. _pctile legvetdur if toplevel2==1 & agencyideol!=. & paepasa==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}18
{txt}
{com}. *
. *
. *
. ranksum polvetdur if toplevel2==0 & agencyideol!=., by(paepasa) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

     paepasa {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    562{col 26}  198433.5{col 38}    191642
           {txt}1 {c |}{res}{col 17}    119{col 26}   33787.5{col 38}     40579
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    681{col 26}    232221{col 38}    232221

{txt}unadjusted variance{col 22}{res}3800899.67
{txt}adjustment for ties{col 22}{res} -80187.09
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}3720712.57

{txt}Ho: polvet~r(paepasa==0) = polvet~r(paepasa==1)
{col 14}z = {res}  3.521
{txt}{col 5}Prob > |z| = {res}  0.0004
{txt}{col 5}Exact Prob = {res}  0.0004
{txt}
{com}. median  polvetdur if toplevel2==0 & agencyideol!=., by(paepasa) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}        paepasa
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}       242         67 {txt}{c |}{res}       309 
{txt}       yes {c |}{res}       319         52 {txt}{c |}{res}       371 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       561        119 {txt}{c |}{res}       680 

{txt}          Pearson chi2({res}1{txt}) = {res}  6.8635  {txt} Pr = {res}0.009
{txt}           Fisher's exact =                 {res}0.011
{txt}   1-sided Fisher's exact =                 {res}0.006

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res}  6.3427{txt}   Pr = {res}0.012
{txt}
{com}. *
. *
. _pctile polvetdur if toplevel2==0 & agencyideol!=. & paepasa==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}2
{txt}
{com}. *
. _pctile polvetdur if toplevel2==0 & agencyideol!=. & paepasa==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}1
{txt}
{com}. *
. *
. *
. ranksum polvetdur if toplevel2==1 & agencyideol!=., by(paepasa) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

     paepasa {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    283{col 26}   47772.5{col 38}   47119.5
           {txt}1 {c |}{res}{col 17}     49{col 26}    7505.5{col 38}    8158.5
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    332{col 26}     55278{col 38}     55278

{txt}unadjusted variance{col 22}{res} 384809.25
{txt}adjustment for ties{col 22}{res} -13418.66
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res} 371390.59

{txt}Ho: polvet~r(paepasa==0) = polvet~r(paepasa==1)
{col 14}z = {res}  1.072
{txt}{col 5}Prob > |z| = {res}  0.2839
{txt}{col 5}Exact Prob = {res}  0.2850
{txt}
{com}. median  polvetdur if toplevel2==1 & agencyideol!=., by(paepasa) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}        paepasa
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}       145         30 {txt}{c |}{res}       175 
{txt}       yes {c |}{res}       137         19 {txt}{c |}{res}       156 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       282         49 {txt}{c |}{res}       331 

{txt}          Pearson chi2({res}1{txt}) = {res}  1.6110  {txt} Pr = {res}0.204
{txt}           Fisher's exact =                 {res}0.218
{txt}   1-sided Fisher's exact =                 {res}0.132

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res}  1.2415{txt}   Pr = {res}0.265
{txt}
{com}. *
. *
. _pctile polvetdur if toplevel2==1 & agencyideol!=. & paepasa==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}2
{txt}
{com}. *
. _pctile polvetdur if toplevel2==1 & agencyideol!=. & paepasa==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}1
{txt}
{com}. *
. *
. *
. 
. 
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. 
. 
. 
. ** [3] RESIDENCE IN DC METRO AREA WITHIN PAST TEN YEARS [dc] **
. 
. 
. ranksum confdur if toplevel2==0 & agencyideol!=., by(dc) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

          dc {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    152{col 26}   49074.5{col 38}     51832
           {txt}1 {c |}{res}{col 17}    529{col 26}  183146.5{col 38}    180389
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    681{col 26}    232221{col 38}    232221

{txt}unadjusted variance{col 22}{res}4569854.67
{txt}adjustment for ties{col 22}{res}   -700.89
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}4569153.78

{txt}Ho: confdur(dc==0) = confdur(dc==1)
{col 14}z = {res} -1.290
{txt}{col 5}Prob > |z| = {res}  0.1970
{txt}{col 5}Exact Prob = {res}  0.1973
{txt}
{com}. median  confdur if toplevel2==0 & agencyideol!=., by(dc) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}          dc
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}        80        257 {txt}{c |}{res}       337 
{txt}       yes {c |}{res}        72        272 {txt}{c |}{res}       344 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       152        529 {txt}{c |}{res}       681 

{txt}          Pearson chi2({res}1{txt}) = {res}  0.7745  {txt} Pr = {res}0.379
{txt}           Fisher's exact =                 {res}0.408
{txt}   1-sided Fisher's exact =                 {res}0.215

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res}  0.6210{txt}   Pr = {res}0.431
{txt}
{com}. *
. *
. _pctile confdur if toplevel2==0 & agencyideol!=. & dc==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}45
{txt}
{com}. *
. _pctile confdur if toplevel2==0 & agencyideol!=. & dc==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}50
{txt}
{com}. *
. *
. *
. ranksum confdur if toplevel2==1 & agencyideol!=., by(dc) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

          dc {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}     97{col 26}   14306.5{col 38}   16150.5
           {txt}1 {c |}{res}{col 17}    235{col 26}   40971.5{col 38}   39127.5
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    332{col 26}     55278{col 38}     55278

{txt}unadjusted variance{col 22}{res} 632561.25
{txt}adjustment for ties{col 22}{res}   -327.01
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res} 632234.24

{txt}Ho: confdur(dc==0) = confdur(dc==1)
{col 14}z = {res} -2.319
{txt}{col 5}Prob > |z| = {res}  0.0204
{txt}{col 5}Exact Prob = {res}  0.0202
{txt}
{com}. median  confdur if toplevel2==1 & agencyideol!=., by(dc) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}          dc
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}        55        111 {txt}{c |}{res}       166 
{txt}       yes {c |}{res}        42        123 {txt}{c |}{res}       165 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}        97        234 {txt}{c |}{res}       331 

{txt}          Pearson chi2({res}1{txt}) = {res}  2.3547  {txt} Pr = {res}0.125
{txt}           Fisher's exact =                 {res}0.147
{txt}   1-sided Fisher's exact =                 {res}0.079

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res}  1.9986{txt}   Pr = {res}0.157
{txt}
{com}. *
. *
. _pctile confdur if toplevel2==1 & agencyideol!=. & dc==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}20
{txt}
{com}. *
. _pctile confdur if toplevel2==1 & agencyideol!=. & dc==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}26
{txt}
{com}. *
. *
. *
. ranksum legvetdur if toplevel2==0 & agencyideol!=., by(dc) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

          dc {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    152{col 26}     50841{col 38}     51832
           {txt}1 {c |}{res}{col 17}    529{col 26}    181380{col 38}    180389
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    681{col 26}    232221{col 38}    232221

{txt}unadjusted variance{col 22}{res}4569854.67
{txt}adjustment for ties{col 22}{res}   -928.61
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}4568926.05

{txt}Ho: legvet~r(dc==0) = legvet~r(dc==1)
{col 14}z = {res} -0.464
{txt}{col 5}Prob > |z| = {res}  0.6429
{txt}{col 5}Exact Prob = {res}  0.6433
{txt}
{com}. median  legvetdur if toplevel2==0 & agencyideol!=., by(dc) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}          dc
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}        78        262 {txt}{c |}{res}       340 
{txt}       yes {c |}{res}        74        267 {txt}{c |}{res}       341 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       152        529 {txt}{c |}{res}       681 

{txt}          Pearson chi2({res}1{txt}) = {res}  0.1511  {txt} Pr = {res}0.698
{txt}           Fisher's exact =                 {res}0.714
{txt}   1-sided Fisher's exact =                 {res}0.383

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res}  0.0880{txt}   Pr = {res}0.767
{txt}
{com}. *
. *
. _pctile legvetdur if toplevel2==0 & agencyideol!=. & dc==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}39.5
{txt}
{com}. *
. _pctile legvetdur if toplevel2==0 & agencyideol!=. & dc==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}41
{txt}
{com}. *
. *
. *
. ranksum legvetdur if toplevel2==1 & agencyideol!=., by(dc) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

          dc {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}     97{col 26}     14335{col 38}   16150.5
           {txt}1 {c |}{res}{col 17}    235{col 26}     40943{col 38}   39127.5
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    332{col 26}     55278{col 38}     55278

{txt}unadjusted variance{col 22}{res} 632561.25
{txt}adjustment for ties{col 22}{res}  -1567.14
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res} 630994.11

{txt}Ho: legvet~r(dc==0) = legvet~r(dc==1)
{col 14}z = {res} -2.286
{txt}{col 5}Prob > |z| = {res}  0.0223
{txt}{col 5}Exact Prob = {res}  0.0221
{txt}
{com}. median  legvetdur if toplevel2==1 & agencyideol!=., by(dc) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}          dc
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}        57        109 {txt}{c |}{res}       166 
{txt}       yes {c |}{res}        40        126 {txt}{c |}{res}       166 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}        97        235 {txt}{c |}{res}       332 

{txt}          Pearson chi2({res}1{txt}) = {res}  4.2092  {txt} Pr = {res}0.040
{txt}           Fisher's exact =                 {res}0.053
{txt}   1-sided Fisher's exact =                 {res}0.027

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res}  3.7285{txt}   Pr = {res}0.053
{txt}
{com}. *
. *
. _pctile legvetdur if toplevel2==1 & agencyideol!=. & dc==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}16
{txt}
{com}. *
. _pctile legvetdur if toplevel2==1 & agencyideol!=. & dc==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}22
{txt}
{com}. *
. *
. *
. ranksum polvetdur if toplevel2==0 & agencyideol!=., by(dc) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

          dc {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    152{col 26}     48631{col 38}     51832
           {txt}1 {c |}{res}{col 17}    529{col 26}    183590{col 38}    180389
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    681{col 26}    232221{col 38}    232221

{txt}unadjusted variance{col 22}{res}4569854.67
{txt}adjustment for ties{col 22}{res} -96409.64
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}4473445.03

{txt}Ho: polvet~r(dc==0) = polvet~r(dc==1)
{col 14}z = {res} -1.513
{txt}{col 5}Prob > |z| = {res}  0.1302
{txt}{col 5}Exact Prob = {res}  0.1301
{txt}
{com}. median  polvetdur if toplevel2==0 & agencyideol!=., by(dc) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}          dc
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}        69        240 {txt}{c |}{res}       309 
{txt}       yes {c |}{res}        83        288 {txt}{c |}{res}       371 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       152        528 {txt}{c |}{res}       680 

{txt}          Pearson chi2({res}1{txt}) = {res}  0.0002  {txt} Pr = {res}0.990
{txt}           Fisher's exact =                 {res}1.000
{txt}   1-sided Fisher's exact =                 {res}0.532

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res}  0.0063{txt}   Pr = {res}0.937
{txt}
{com}. *
. *
. _pctile polvetdur if toplevel2==0 & agencyideol!=. & dc==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}2
{txt}
{com}. *
. _pctile polvetdur if toplevel2==0 & agencyideol!=. & dc==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}2
{txt}
{com}. *
. *
. *
. ranksum polvetdur if toplevel2==1 & agencyideol!=., by(dc) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

          dc {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}     97{col 26}     15351{col 38}   16150.5
           {txt}1 {c |}{res}{col 17}    235{col 26}     39927{col 38}   39127.5
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    332{col 26}     55278{col 38}     55278

{txt}unadjusted variance{col 22}{res} 632561.25
{txt}adjustment for ties{col 22}{res} -22058.00
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res} 610503.25

{txt}Ho: polvet~r(dc==0) = polvet~r(dc==1)
{col 14}z = {res} -1.023
{txt}{col 5}Prob > |z| = {res}  0.3062
{txt}{col 5}Exact Prob = {res}  0.3069
{txt}
{com}. median  polvetdur if toplevel2==1 & agencyideol!=., by(dc) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}          dc
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}        53        122 {txt}{c |}{res}       175 
{txt}       yes {c |}{res}        44        112 {txt}{c |}{res}       156 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}        97        234 {txt}{c |}{res}       331 

{txt}          Pearson chi2({res}1{txt}) = {res}  0.1723  {txt} Pr = {res}0.678
{txt}           Fisher's exact =                 {res}0.717
{txt}   1-sided Fisher's exact =                 {res}0.385

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res}  0.0865{txt}   Pr = {res}0.769
{txt}
{com}. *
. *
. _pctile polvetdur if toplevel2==1 & agencyideol!=. & dc==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}2
{txt}
{com}. *
. _pctile polvetdur if toplevel2==1 & agencyideol!=. & dc==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}2
{txt}
{com}. *
. *
. *
. 
. 
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. 
. 
. 
. 
. 
. **** II. EVALUATE BETWEEN-TIER DIFFERENCES BASED UPON WHETHER [1] [1] SERVED IN PREVIOUS ADMINISTRATION IN FULL-TIME PAS OR NON-PAS APPOINTED POSITION [paepa]; ///
> **** [2] SERVED IN PREVIOUS ADMINISTRATION IN FULL-TIME PAS OR NON-PAS APPOINTED POSITION, SAME AGENCY [paepasa]; and (3) RESIDED IN D.C. METRO AREA WITHIN PAST 10 YEARS [dc] **** 
. 
. 
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. 
. 
. *** PERFORM MANN-WHITNEY U [ranksum] & NONPARAMETRIC EQUALITY OF MEDIANS TESTS [median] ***
. 
. 
. 
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. 
. 
. 
. 
. ** [1] SERVED IN PREVIOUS ADMINISTRATION IN FULL-TIME PAS OR NON-PAS APPOINTED POSITION [paepa] **
. 
. ranksum confdur if paepa==0 & agencyideol!=., by(toplevel2) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

   toplevel2 {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    478{col 26}  183671.5{col 38}    165866
           {txt}1 {c |}{res}{col 17}    215{col 26}   56799.5{col 38}     74605
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    693{col 26}    240471{col 38}    240471

{txt}unadjusted variance{col 22}{res}5943531.67
{txt}adjustment for ties{col 22}{res}  -1011.29
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}5942520.37

{txt}Ho: confdur(toplev~2==0) = confdur(toplev~2==1)
{col 14}z = {res}  7.304
{txt}{col 5}Prob > |z| = {res}  0.0000
{txt}{col 5}Exact Prob = {res}  0.0000
{txt}
{com}. median  confdur if paepa==0 & agencyideol!=., by(toplevel2) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}       toplevel2
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}       207        142 {txt}{c |}{res}       349 
{txt}       yes {c |}{res}       270         73 {txt}{c |}{res}       343 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       477        215 {txt}{c |}{res}       692 

{txt}          Pearson chi2({res}1{txt}) = {res} 30.4152  {txt} Pr = {res}0.000
{txt}           Fisher's exact =                 {res}0.000
{txt}   1-sided Fisher's exact =                 {res}0.000

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res} 29.5159{txt}   Pr = {res}0.000
{txt}
{com}. *
. *
. _pctile confdur if paepa==0 & agencyideol!=. & toplevel2==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}53.5
{txt}
{com}. *
. _pctile confdur if paepa==0 & agencyideol!=. & toplevel2==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}29
{txt}
{com}. *
. *
. *
. ranksum confdur if paepa==1 & agencyideol!=., by(toplevel2) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

   toplevel2 {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    203{col 26}   37089.5{col 38}   32581.5
           {txt}1 {c |}{res}{col 17}    117{col 26}   14270.5{col 38}   18778.5
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    320{col 26}     51360{col 38}     51360

{txt}unadjusted variance{col 22}{res} 635339.25
{txt}adjustment for ties{col 22}{res}   -209.64
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res} 635129.61

{txt}Ho: confdur(toplev~2==0) = confdur(toplev~2==1)
{col 14}z = {res}  5.657
{txt}{col 5}Prob > |z| = {res}  0.0000
{txt}{col 5}Exact Prob = {res}  0.0000
{txt}
{com}. median  confdur if paepa==1 & agencyideol!=., by(toplevel2) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}       toplevel2
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}        82         78 {txt}{c |}{res}       160 
{txt}       yes {c |}{res}       121         38 {txt}{c |}{res}       159 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       203        116 {txt}{c |}{res}       319 

{txt}          Pearson chi2({res}1{txt}) = {res} 21.2828  {txt} Pr = {res}0.000
{txt}           Fisher's exact =                 {res}0.000
{txt}   1-sided Fisher's exact =                 {res}0.000

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res} 20.2224{txt}   Pr = {res}0.000
{txt}
{com}. *
. *
. _pctile confdur if paepa==1 & agencyideol!=. & toplevel2==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}41
{txt}
{com}. *
. _pctile confdur if paepa==1 & agencyideol!=. & toplevel2==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}20
{txt}
{com}. *
. *
. *
. ranksum legvetdur if paepa==0 & agencyideol!=., by(toplevel2) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

   toplevel2 {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    478{col 26}  182407.5{col 38}    165866
           {txt}1 {c |}{res}{col 17}    215{col 26}   58063.5{col 38}     74605
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    693{col 26}    240471{col 38}    240471

{txt}unadjusted variance{col 22}{res}5943531.67
{txt}adjustment for ties{col 22}{res}  -1423.29
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}5942108.38

{txt}Ho: legvet~r(toplev~2==0) = legvet~r(toplev~2==1)
{col 14}z = {res}  6.786
{txt}{col 5}Prob > |z| = {res}  0.0000
{txt}{col 5}Exact Prob = {res}  0.0000
{txt}
{com}. median  legvetdur if paepa==0 & agencyideol!=., by(toplevel2) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}       toplevel2
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}       206        135 {txt}{c |}{res}       341 
{txt}       yes {c |}{res}       272         80 {txt}{c |}{res}       352 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       478        215 {txt}{c |}{res}       693 

{txt}          Pearson chi2({res}1{txt}) = {res} 23.0139  {txt} Pr = {res}0.000
{txt}           Fisher's exact =                 {res}0.000
{txt}   1-sided Fisher's exact =                 {res}0.000

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res} 22.2327{txt}   Pr = {res}0.000
{txt}
{com}. *
. *
. _pctile legvetdur if paepa==0 & agencyideol!=. & toplevel2==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}44
{txt}
{com}. *
. _pctile legvetdur if paepa==0 & agencyideol!=. & toplevel2==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}23
{txt}
{com}. *
. *
. *
. ranksum legvetdur if paepa==1 & agencyideol!=., by(toplevel2) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

   toplevel2 {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    203{col 26}     36819{col 38}   32581.5
           {txt}1 {c |}{res}{col 17}    117{col 26}     14541{col 38}   18778.5
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    320{col 26}     51360{col 38}     51360

{txt}unadjusted variance{col 22}{res} 635339.25
{txt}adjustment for ties{col 22}{res}   -476.04
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res} 634863.21

{txt}Ho: legvet~r(toplev~2==0) = legvet~r(toplev~2==1)
{col 14}z = {res}  5.318
{txt}{col 5}Prob > |z| = {res}  0.0000
{txt}{col 5}Exact Prob = {res}  0.0000
{txt}
{com}. median  legvetdur if paepa==1 & agencyideol!=., by(toplevel2) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}       toplevel2
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}        80         77 {txt}{c |}{res}       157 
{txt}       yes {c |}{res}       122         40 {txt}{c |}{res}       162 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       202        117 {txt}{c |}{res}       319 

{txt}          Pearson chi2({res}1{txt}) = {res} 20.3602  {txt} Pr = {res}0.000
{txt}           Fisher's exact =                 {res}0.000
{txt}   1-sided Fisher's exact =                 {res}0.000

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res} 19.3251{txt}   Pr = {res}0.000
{txt}
{com}. *
. *
. _pctile legvetdur if paepa==1 & agencyideol!=. & toplevel2==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}33
{txt}
{com}. *
. _pctile legvetdur if paepa==1 & agencyideol!=. & toplevel2==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}16
{txt}
{com}. *
. *
. *
. ranksum polvetdur if paepa==0 & agencyideol!=., by(toplevel2) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

   toplevel2 {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    478{col 26}    171859{col 38}    165866
           {txt}1 {c |}{res}{col 17}    215{col 26}     68612{col 38}     74605
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    693{col 26}    240471{col 38}    240471

{txt}unadjusted variance{col 22}{res}5943531.67
{txt}adjustment for ties{col 22}{res}-120480.59
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}5823051.07

{txt}Ho: polvet~r(toplev~2==0) = polvet~r(toplev~2==1)
{col 14}z = {res}  2.484
{txt}{col 5}Prob > |z| = {res}  0.0130
{txt}{col 5}Exact Prob = {res}  0.0129
{txt}
{com}. median  polvetdur if paepa==0 & agencyideol!=., by(toplevel2) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}       toplevel2
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}       200        105 {txt}{c |}{res}       305 
{txt}       yes {c |}{res}       278        110 {txt}{c |}{res}       388 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       478        215 {txt}{c |}{res}       693 

{txt}          Pearson chi2({res}1{txt}) = {res}  2.9457  {txt} Pr = {res}0.086
{txt}           Fisher's exact =                 {res}0.098
{txt}   1-sided Fisher's exact =                 {res}0.051

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res}  2.6687{txt}   Pr = {res}0.102
{txt}
{com}. *
. *
. _pctile polvetdur if paepa==0 & agencyideol!=. & toplevel2==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}3
{txt}
{com}. *
. _pctile polvetdur if paepa==0 & agencyideol!=. & toplevel2==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}2
{txt}
{com}. *
. *
. *
. ranksum polvetdur if paepa==1 & agencyideol!=., by(toplevel2) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

   toplevel2 {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    203{col 26}     34144{col 38}   32581.5
           {txt}1 {c |}{res}{col 17}    117{col 26}     17216{col 38}   18778.5
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    320{col 26}     51360{col 38}     51360

{txt}unadjusted variance{col 22}{res} 635339.25
{txt}adjustment for ties{col 22}{res} -24952.28
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res} 610386.97

{txt}Ho: polvet~r(toplev~2==0) = polvet~r(toplev~2==1)
{col 14}z = {res}  2.000
{txt}{col 5}Prob > |z| = {res}  0.0455
{txt}{col 5}Exact Prob = {res}  0.0453
{txt}
{com}. median  polvetdur if paepa==1 & agencyideol!=., by(toplevel2) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}       toplevel2
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}        70         44 {txt}{c |}{res}       114 
{txt}       yes {c |}{res}       132         73 {txt}{c |}{res}       205 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       202        117 {txt}{c |}{res}       319 

{txt}          Pearson chi2({res}1{txt}) = {res}  0.2814  {txt} Pr = {res}0.596
{txt}           Fisher's exact =                 {res}0.629
{txt}   1-sided Fisher's exact =                 {res}0.340

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res}  0.1675{txt}   Pr = {res}0.682
{txt}
{com}. *
. *
. _pctile polvetdur if paepa==0 & agencyideol!=. & toplevel2==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}3
{txt}
{com}. *
. _pctile polvetdur if paepa==0 & agencyideol!=. & toplevel2==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}2
{txt}
{com}. *
. *
. *
. 
. 
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. 
. 
. 
. ** [2] SERVED IN PREVIOUS ADMINISTRATION IN FULL-TIME PAS OR NON-PAS APPOINTED POSITION, SAME AGENCY [paepasa] **
. 
. ranksum confdur if paepasa==0 & agencyideol!=., by(toplevel2) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

   toplevel2 {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    562{col 26}  267818.5{col 38}    237726
           {txt}1 {c |}{res}{col 17}    283{col 26}   89616.5{col 38}    119709
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    845{col 26}    357435{col 38}    357435

{txt}unadjusted variance{col 22}{res}  11212743
{txt}adjustment for ties{col 22}{res}-1775.9371
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}  11210967

{txt}Ho: confdur(toplev~2==0) = confdur(toplev~2==1)
{col 14}z = {res}  8.987
{txt}{col 5}Prob > |z| = {res}  0.0000
{txt}{col 5}Exact Prob = {res}  0.0000
{txt}
{com}. median  confdur if paepasa==0 & agencyideol!=., by(toplevel2) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}       toplevel2
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}       235        190 {txt}{c |}{res}       425 
{txt}       yes {c |}{res}       327         93 {txt}{c |}{res}       420 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       562        283 {txt}{c |}{res}       845 

{txt}          Pearson chi2({res}1{txt}) = {res} 48.2800  {txt} Pr = {res}0.000
{txt}           Fisher's exact =                 {res}0.000
{txt}   1-sided Fisher's exact =                 {res}0.000

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res} 47.2723{txt}   Pr = {res}0.000
{txt}
{com}. *
. *
. _pctile confdur if paepasa==0 & agencyideol!=. & toplevel2==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}53
{txt}
{com}. *
. _pctile confdur if paepasa==0 & agencyideol!=. & toplevel2==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}25
{txt}
{com}. *
. *
. *
. ranksum confdur if paepasa==1 & agencyideol!=., by(toplevel2) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

   toplevel2 {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    119{col 26}   10931.5{col 38}   10055.5
           {txt}1 {c |}{res}{col 17}     49{col 26}    3264.5{col 38}    4140.5
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    168{col 26}     14196{col 38}     14196

{txt}unadjusted variance{col 22}{res}  82119.92
{txt}adjustment for ties{col 22}{res}    -39.59
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}  82080.32

{txt}Ho: confdur(toplev~2==0) = confdur(toplev~2==1)
{col 14}z = {res}  3.058
{txt}{col 5}Prob > |z| = {res}  0.0022
{txt}{col 5}Exact Prob = {res}  0.0021
{txt}
{com}. median  confdur if paepasa==1 & agencyideol!=., by(toplevel2) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}       toplevel2
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}        50         33 {txt}{c |}{res}        83 
{txt}       yes {c |}{res}        68         16 {txt}{c |}{res}        84 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       118         49 {txt}{c |}{res}       167 

{txt}          Pearson chi2({res}1{txt}) = {res}  8.6380  {txt} Pr = {res}0.003
{txt}           Fisher's exact =                 {res}0.004
{txt}   1-sided Fisher's exact =                 {res}0.003

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res}  7.6679{txt}   Pr = {res}0.006
{txt}
{com}. *
. *
. _pctile confdur if paepasa==1 & agencyideol!=. & toplevel2==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}41
{txt}
{com}. *
. _pctile confdur if paepasa==1 & agencyideol!=. & toplevel2==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}20
{txt}
{com}. *
. *
. *
. ranksum legvetdur if paepasa==0 & agencyideol!=., by(toplevel2) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

   toplevel2 {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    562{col 26}  265682.5{col 38}    237726
           {txt}1 {c |}{res}{col 17}    283{col 26}   91752.5{col 38}    119709
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    845{col 26}    357435{col 38}    357435

{txt}unadjusted variance{col 22}{res}  11212743
{txt}adjustment for ties{col 22}{res}-3310.3548
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}  11209433

{txt}Ho: legvet~r(toplev~2==0) = legvet~r(toplev~2==1)
{col 14}z = {res}  8.350
{txt}{col 5}Prob > |z| = {res}  0.0000
{txt}{col 5}Exact Prob = {res}  0.0000
{txt}
{com}. median  legvetdur if paepasa==0 & agencyideol!=., by(toplevel2) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}       toplevel2
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}       238        188 {txt}{c |}{res}       426 
{txt}       yes {c |}{res}       323         95 {txt}{c |}{res}       418 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       561        283 {txt}{c |}{res}       844 

{txt}          Pearson chi2({res}1{txt}) = {res} 43.3687  {txt} Pr = {res}0.000
{txt}           Fisher's exact =                 {res}0.000
{txt}   1-sided Fisher's exact =                 {res}0.000

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res} 42.4136{txt}   Pr = {res}0.000
{txt}
{com}. *
. *
. _pctile legvetdur if paepasa==0 & agencyideol!=. & toplevel2==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}42
{txt}
{com}. *
. _pctile legvetdur if paepasa==0 & agencyideol!=. & toplevel2==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}22
{txt}
{com}. *
. *
. *
. ranksum legvetdur if paepasa==1 & agencyideol!=., by(toplevel2) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

   toplevel2 {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    119{col 26}     10907{col 38}   10055.5
           {txt}1 {c |}{res}{col 17}     49{col 26}      3289{col 38}    4140.5
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    168{col 26}     14196{col 38}     14196

{txt}unadjusted variance{col 22}{res}  82119.92
{txt}adjustment for ties{col 22}{res}    -48.22
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}  82071.70

{txt}Ho: legvet~r(toplev~2==0) = legvet~r(toplev~2==1)
{col 14}z = {res}  2.972
{txt}{col 5}Prob > |z| = {res}  0.0030
{txt}{col 5}Exact Prob = {res}  0.0028
{txt}
{com}. median  legvetdur if paepasa==1 & agencyideol!=., by(toplevel2) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}       toplevel2
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}        52         32 {txt}{c |}{res}        84 
{txt}       yes {c |}{res}        67         17 {txt}{c |}{res}        84 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       119         49 {txt}{c |}{res}       168 

{txt}          Pearson chi2({res}1{txt}) = {res}  6.4826  {txt} Pr = {res}0.011
{txt}           Fisher's exact =                 {res}0.017
{txt}   1-sided Fisher's exact =                 {res}0.009

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res}  5.6471{txt}   Pr = {res}0.017
{txt}
{com}. *
. *
. _pctile legvetdur if paepasa==1 & agencyideol!=. & toplevel2==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}32
{txt}
{com}. *
. _pctile legvetdur if paepasa==1 & agencyideol!=. & toplevel2==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}18
{txt}
{com}. *
. *
. *
. ranksum polvetdur if paepasa==0 & agencyideol!=., by(toplevel2) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

   toplevel2 {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    562{col 26}    249817{col 38}    237726
           {txt}1 {c |}{res}{col 17}    283{col 26}    107618{col 38}    119709
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    845{col 26}    357435{col 38}    357435

{txt}unadjusted variance{col 22}{res}  11212743
{txt}adjustment for ties{col 22}{res}-253533.95
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}  10959209

{txt}Ho: polvet~r(toplev~2==0) = polvet~r(toplev~2==1)
{col 14}z = {res}  3.652
{txt}{col 5}Prob > |z| = {res}  0.0003
{txt}{col 5}Exact Prob = {res}  0.0002
{txt}
{com}. median  polvetdur if paepasa==0 & agencyideol!=., by(toplevel2) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}       toplevel2
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}       243        144 {txt}{c |}{res}       387 
{txt}       yes {c |}{res}       319        138 {txt}{c |}{res}       457 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       562        282 {txt}{c |}{res}       844 

{txt}          Pearson chi2({res}1{txt}) = {res}  4.6314  {txt} Pr = {res}0.031
{txt}           Fisher's exact =                 {res}0.034
{txt}   1-sided Fisher's exact =                 {res}0.019

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res}  4.3216{txt}   Pr = {res}0.038
{txt}
{com}. *
. *
. _pctile polvetdur if paepasa==0 & agencyideol!=. & toplevel2==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}2
{txt}
{com}. *
. _pctile polvetdur if paepasa==0 & agencyideol!=. & toplevel2==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}2
{txt}
{com}. *
. *
. *
. ranksum polvetdur if paepasa==1 & agencyideol!=., by(toplevel2) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

   toplevel2 {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    119{col 26}     10165{col 38}   10055.5
           {txt}1 {c |}{res}{col 17}     49{col 26}      4031{col 38}    4140.5
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    168{col 26}     14196{col 38}     14196

{txt}unadjusted variance{col 22}{res}  82119.92
{txt}adjustment for ties{col 22}{res}  -3308.00
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}  78811.92

{txt}Ho: polvet~r(toplev~2==0) = polvet~r(toplev~2==1)
{col 14}z = {res}  0.390
{txt}{col 5}Prob > |z| = {res}  0.6965
{txt}{col 5}Exact Prob = {res}  0.6987
{txt}
{com}. median  polvetdur if paepasa==1 & agencyideol!=., by(toplevel2) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}       toplevel2
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}        42         20 {txt}{c |}{res}        62 
{txt}       yes {c |}{res}        76         29 {txt}{c |}{res}       105 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       118         49 {txt}{c |}{res}       167 

{txt}          Pearson chi2({res}1{txt}) = {res}  0.4046  {txt} Pr = {res}0.525
{txt}           Fisher's exact =                 {res}0.598
{txt}   1-sided Fisher's exact =                 {res}0.321

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res}  0.2118{txt}   Pr = {res}0.645
{txt}
{com}. *
. *
. _pctile polvetdur if paepasa==1 & agencyideol!=. & toplevel2==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}1
{txt}
{com}. *
. _pctile polvetdur if paepasa==1 & agencyideol!=. & toplevel2==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}1
{txt}
{com}. *
. *
. *
. 
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. 
. 
. 
. ** [3] RESIDENCE IN DC METRO AREA WITHIN PAST TEN YEARS [dc] **
. 
. ranksum confdur if dc==0 & agencyideol!=., by(toplevel2) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

   toplevel2 {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    152{col 26}   22111.5{col 38}     19000
           {txt}1 {c |}{res}{col 17}     97{col 26}    9013.5{col 38}     12125
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    249{col 26}     31125{col 38}     31125

{txt}unadjusted variance{col 22}{res} 307166.67
{txt}adjustment for ties{col 22}{res}    -79.51
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res} 307087.16

{txt}Ho: confdur(toplev~2==0) = confdur(toplev~2==1)
{col 14}z = {res}  5.615
{txt}{col 5}Prob > |z| = {res}  0.0000
{txt}{col 5}Exact Prob = {res}  0.0000
{txt}
{com}. median  confdur if dc==0 & agencyideol!=., by(toplevel2) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}       toplevel2
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}        63         61 {txt}{c |}{res}       124 
{txt}       yes {c |}{res}        89         35 {txt}{c |}{res}       124 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       152         96 {txt}{c |}{res}       248 

{txt}          Pearson chi2({res}1{txt}) = {res} 11.4890  {txt} Pr = {res}0.001
{txt}           Fisher's exact =                 {res}0.001
{txt}   1-sided Fisher's exact =                 {res}0.001

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res} 10.6223{txt}   Pr = {res}0.001
{txt}
{com}. *
. *
. _pctile confdur if dc==0 & agencyideol!=. & toplevel2==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}45
{txt}
{com}. *
. _pctile confdur if dc==0 & agencyideol!=. & toplevel2==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}20
{txt}
{com}. *
. *
. *
. ranksum confdur if dc==1 & agencyideol!=., by(toplevel2) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

   toplevel2 {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    529{col 26}    223010{col 38}  202342.5
           {txt}1 {c |}{res}{col 17}    235{col 26}     69220{col 38}   89887.5
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    764{col 26}    292230{col 38}    292230

{txt}unadjusted variance{col 22}{res}7925081.25
{txt}adjustment for ties{col 22}{res}  -1433.52
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}7923647.73

{txt}Ho: confdur(toplev~2==0) = confdur(toplev~2==1)
{col 14}z = {res}  7.342
{txt}{col 5}Prob > |z| = {res}  0.0000
{txt}{col 5}Exact Prob = {res}  0.0000
{txt}
{com}. median  confdur if dc==1 & agencyideol!=., by(toplevel2) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}       toplevel2
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}       229        156 {txt}{c |}{res}       385 
{txt}       yes {c |}{res}       299         79 {txt}{c |}{res}       378 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       528        235 {txt}{c |}{res}       763 

{txt}          Pearson chi2({res}1{txt}) = {res} 34.4488  {txt} Pr = {res}0.000
{txt}           Fisher's exact =                 {res}0.000
{txt}   1-sided Fisher's exact =                 {res}0.000

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res} 33.5344{txt}   Pr = {res}0.000
{txt}
{com}. *
. *
. _pctile confdur if dc==1 & agencyideol!=. & toplevel2==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}50
{txt}
{com}. *
. _pctile confdur if dc==1 & agencyideol!=. & toplevel2==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}26
{txt}
{com}. *
. *
. *
. ranksum legvetdur if dc==0 & agencyideol!=., by(toplevel2) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

   toplevel2 {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    152{col 26}   22119.5{col 38}     19000
           {txt}1 {c |}{res}{col 17}     97{col 26}    9005.5{col 38}     12125
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    249{col 26}     31125{col 38}     31125

{txt}unadjusted variance{col 22}{res} 307166.67
{txt}adjustment for ties{col 22}{res}   -251.89
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res} 306914.77

{txt}Ho: legvet~r(toplev~2==0) = legvet~r(toplev~2==1)
{col 14}z = {res}  5.631
{txt}{col 5}Prob > |z| = {res}  0.0000
{txt}{col 5}Exact Prob = {res}  0.0000
{txt}
{com}. median  legvetdur if dc==0 & agencyideol!=., by(toplevel2) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}       toplevel2
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}        61         62 {txt}{c |}{res}       123 
{txt}       yes {c |}{res}        91         35 {txt}{c |}{res}       126 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       152         97 {txt}{c |}{res}       249 

{txt}          Pearson chi2({res}1{txt}) = {res} 13.4023  {txt} Pr = {res}0.000
{txt}           Fisher's exact =                 {res}0.000
{txt}   1-sided Fisher's exact =                 {res}0.000

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res} 12.4676{txt}   Pr = {res}0.000
{txt}
{com}. *
. *
. _pctile legvetdur if dc==0 & agencyideol!=. & toplevel2==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}39.5
{txt}
{com}. *
. _pctile legvetdur if dc==0 & agencyideol!=. & toplevel2==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}16
{txt}
{com}. *
. *
. *
. ranksum legvetdur if dc==1 & agencyideol!=., by(toplevel2) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

   toplevel2 {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    529{col 26}    221080{col 38}  202342.5
           {txt}1 {c |}{res}{col 17}    235{col 26}     71150{col 38}   89887.5
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    764{col 26}    292230{col 38}    292230

{txt}unadjusted variance{col 22}{res}7925081.25
{txt}adjustment for ties{col 22}{res}  -2123.84
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}7922957.41

{txt}Ho: legvet~r(toplev~2==0) = legvet~r(toplev~2==1)
{col 14}z = {res}  6.657
{txt}{col 5}Prob > |z| = {res}  0.0000
{txt}{col 5}Exact Prob = {res}  0.0000
{txt}
{com}. median  legvetdur if dc==1 & agencyideol!=., by(toplevel2) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}       toplevel2
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}       229        158 {txt}{c |}{res}       387 
{txt}       yes {c |}{res}       299         77 {txt}{c |}{res}       376 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       528        235 {txt}{c |}{res}       763 

{txt}          Pearson chi2({res}1{txt}) = {res} 37.0486  {txt} Pr = {res}0.000
{txt}           Fisher's exact =                 {res}0.000
{txt}   1-sided Fisher's exact =                 {res}0.000

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res} 36.1000{txt}   Pr = {res}0.000
{txt}
{com}. *
. *
. _pctile legvetdur if dc==1 & agencyideol!=. & toplevel2==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}41
{txt}
{com}. *
. _pctile legvetdur if dc==1 & agencyideol!=. & toplevel2==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}22
{txt}
{com}. *
. *
. *
. ranksum polvetdur if dc==0 & agencyideol!=., by(toplevel2) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

   toplevel2 {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    152{col 26}   19872.5{col 38}     19000
           {txt}1 {c |}{res}{col 17}     97{col 26}   11252.5{col 38}     12125
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    249{col 26}     31125{col 38}     31125

{txt}unadjusted variance{col 22}{res} 307166.67
{txt}adjustment for ties{col 22}{res}  -7928.43
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res} 299238.23

{txt}Ho: polvet~r(toplev~2==0) = polvet~r(toplev~2==1)
{col 14}z = {res}  1.595
{txt}{col 5}Prob > |z| = {res}  0.1107
{txt}{col 5}Exact Prob = {res}  0.1108
{txt}
{com}. median  polvetdur if dc==0 & agencyideol!=., by(toplevel2) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}       toplevel2
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}        68         56 {txt}{c |}{res}       124 
{txt}       yes {c |}{res}        83         41 {txt}{c |}{res}       124 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       151         97 {txt}{c |}{res}       248 

{txt}          Pearson chi2({res}1{txt}) = {res}  3.8097  {txt} Pr = {res}0.051
{txt}           Fisher's exact =                 {res}0.068
{txt}   1-sided Fisher's exact =                 {res}0.034

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res}  3.3186{txt}   Pr = {res}0.068
{txt}
{com}. *
. *
. _pctile polvetdur if dc==0 & agencyideol!=. & toplevel2==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}2
{txt}
{com}. *
. _pctile polvetdur if dc==0 & agencyideol!=. & toplevel2==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}2
{txt}
{com}. *
. *
. *
. *
. ranksum polvetdur if dc==1 & agencyideol!=., by(toplevel2) exact

{txt}Two-sample Wilcoxon rank-sum (Mann-Whitney) test

   toplevel2 {c |}      obs    rank sum    expected
{hline 13}{c +}{hline 33}
           0 {c |}{res}{col 17}    529{col 26}    210062{col 38}  202342.5
           {txt}1 {c |}{res}{col 17}    235{col 26}     82168{col 38}   89887.5
{txt}{hline 13}{c +}{hline 33}
    combined {c |}{res}{col 17}    764{col 26}    292230{col 38}    292230

{txt}unadjusted variance{col 22}{res}7925081.25
{txt}adjustment for ties{col 22}{res}-195132.81
{txt}{col 22}{hline 10}
adjusted variance{col 22}{res}7729948.44

{txt}Ho: polvet~r(toplev~2==0) = polvet~r(toplev~2==1)
{col 14}z = {res}  2.777
{txt}{col 5}Prob > |z| = {res}  0.0055
{txt}{col 5}Exact Prob = {res}  0.0054
{txt}
{com}. median  polvetdur if dc==1 & agencyideol!=., by(toplevel2) exact medianties(split)

{txt}Median test

   Greater {c |}
  than the {c |}       toplevel2
    median {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
        no {c |}{res}       237        123 {txt}{c |}{res}       360 
{txt}       yes {c |}{res}       292        111 {txt}{c |}{res}       403 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       529        234 {txt}{c |}{res}       763 

{txt}          Pearson chi2({res}1{txt}) = {res}  3.9229  {txt} Pr = {res}0.048
{txt}           Fisher's exact =                 {res}0.050
{txt}   1-sided Fisher's exact =                 {res}0.029

{txt}   Continuity corrected:
          Pearson chi2({res}1{txt}) = {res}  3.6175{txt}   Pr = {res}0.057
{txt}
{com}. *
. *
. _pctile polvetdur if dc==1 & agencyideol!=. & toplevel2==0, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}2
{txt}
{com}. *
. _pctile polvetdur if dc==1 & agencyideol!=. & toplevel2==1, p(50)
{txt}
{com}. return list

{txt}scalars:
                 r(r1) =  {res}2
{txt}
{com}. *
. *
. *
. 
. 
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. ************************************************************************************************************************************************************************************
. 
. 
. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Output/APPENDIX H.WITHIN & BETWEEN TIER DIFFERENCES.04-19-2021.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}20 Apr 2021, 07:56:58
{txt}{.-}
{smcl}
{txt}{sf}{ul off}